package com.deyuanyun.pic.settings.controller.dto.base;

import com.deyuanyun.pic.settings.support.utils.BaseCodeUtils;

import java.math.BigDecimal;
import java.util.Date;

/**
 *  风险评价dto
 *  @author axiao(xj08.dream@gmail.com)
 *  @date 2016-06-23
 *  @version 1.0
 *  Histroy: [修改人][时间][描述]
 */
public class RiskAssessmentDTO {

    private String pipeLineId;//管道id

    private String pipeLineName;//管道名称

    private String code; //统一编号

    private String name;//风险段名称

    private String areaLevel;//地区等级

    private int areaIntLevel;//地区整形等级

    private String riskGrade;//风险等级

    private int riskIntGrade;//风险整形等级

    private String mainThreats;//主要威胁因素

    private Date evaluateTime;//风险评价时间

    private BigDecimal fromMileage;//起点绝对距离

    private String fromReferenceId; //起点最近参考点编号

    private BigDecimal toMileage;//终点绝对距离

    private String toReferenceId; //起点最近参考点编号

    private Date updateDate; //更新时间

    private Date createDate; //创建时间

    public String getPipeLineId() {
        return pipeLineId;
    }

    public void setPipeLineId(String pipeLineId) {
        this.pipeLineId = pipeLineId;
    }

    public String getPipeLineName() {
        return pipeLineName;
    }

    public void setPipeLineName(String pipeLineName) {
        this.pipeLineName = pipeLineName;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAreaLevel() {
        return areaLevel;
    }

    public void setAreaLevel(String areaLevel) {
        this.areaLevel = areaLevel;
    }

    public int getAreaIntLevel() {
        return areaIntLevel;
    }

    public void setAreaIntLevel(int areaIntLevel) {
        this.areaIntLevel = areaIntLevel;
    }

    public String getRiskGrade() {
        return riskGrade;
    }

    public void setRiskGrade(String riskGrade) {
        this.riskGrade = riskGrade;
    }

    public int getRiskIntGrade() {
        return riskIntGrade;
    }

    public void setRiskIntGrade(int riskIntGrade) {
        this.riskIntGrade = riskIntGrade;
    }

    public String getMainThreats() {
        return BaseCodeUtils.getMinorCode(mainThreats);
    }

    public void setMainThreats(String mainThreats) {
        this.mainThreats = mainThreats;
    }

    public Date getEvaluateTime() {
        return evaluateTime;
    }

    public void setEvaluateTime(Date evaluateTime) {
        this.evaluateTime = evaluateTime;
    }

    public BigDecimal getFromMileage() {
        return fromMileage;
    }

    public RiskAssessmentDTO setFromMileage(BigDecimal fromMileage) {
        this.fromMileage = fromMileage;
        return this;
    }

    public String getFromReferenceId() {
        return fromReferenceId;
    }

    public RiskAssessmentDTO setFromReferenceId(String fromReferenceId) {
        this.fromReferenceId = fromReferenceId;
        return this;
    }

    public BigDecimal getToMileage() {
        return toMileage;
    }

    public RiskAssessmentDTO setToMileage(BigDecimal toMileage) {
        this.toMileage = toMileage;
        return this;
    }

    public String getToReferenceId() {
        return toReferenceId;
    }

    public RiskAssessmentDTO setToReferenceId(String toReferenceId) {
        this.toReferenceId = toReferenceId;
        return this;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public RiskAssessmentDTO setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
        return this;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public RiskAssessmentDTO setCreateDate(Date createDate) {
        this.createDate = createDate;
        return this;
    }
}
